package com.moonce.feign.service;

import com.moonce.feign.config.FeignConfig;
import com.moonce.feign.hystrix.HiHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "moonce-hi",configuration = FeignConfig.class,fallback = HiHystrix.class)
public interface HiService {
    @RequestMapping(value = "/hi", method = RequestMethod.GET)
    String sayHiFromClientOne(@RequestParam(value = "name") String name);
}
